#pragma once

#include <string>

namespace convert {

// UTF-8 & GB2312
int g2u(unsigned char* pOut, int pOutLen, unsigned char* pText, int pLen);
int u2g(unsigned char* pOut, int pOutLen, unsigned char* pText, int pLen);
bool g2u(std::string& outStr, const std::string inputStr);
bool u2g(std::string& outStr, const std::string inputStr);
bool isUTF8(const std::string str);

}  // namespace convert